﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace Rud.Holmgren.Tabulex3000.Controls
{
    public partial class DottedButtonControl : UserControl
    {


        public string ButtonText
        {
            get { return (string)GetValue(ButtonTextProperty); }
            set { SetValue(ButtonTextProperty, value); }
        }

        // Using a DependencyProperty as the backing store for ButtonText.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ButtonTextProperty =
            DependencyProperty.Register("ButtonText", typeof(string), typeof(DottedButtonControl), new PropertyMetadata(""));


        public int ButtonMap
        {
            get { return (int)GetValue(ButtonMapProperty); }
            set { SetValue(ButtonMapProperty, value); }
        }

        // Using a DependencyProperty as the backing store for ButtonMap.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ButtonMapProperty =
            DependencyProperty.Register("ButtonMap", typeof(int), typeof(DottedButtonControl), new PropertyMetadata(0));

       
        public DottedButtonControl()
        {
            InitializeComponent();
            LayoutRoot.DataContext = this;
        }
    }
}
